﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="HospitalList.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.SystemManage.HospitalList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">查看医疗机构</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    <asp:Label ID="Label2" runat="server" Text="医疗机构名称："></asp:Label>
                </td>
                <td align="left">
                <asp:TextBox ID="txtHospitalName" runat="server" Width="120px"></asp:TextBox>
                     <table style="display:none;">
                        <tr>
                            <td></td>
                            <td>&nbsp;&nbsp;&nbsp;</td>
                            <td>是否基层医疗机构</td>
                            <td><asp:DropDownList ID="ddlJICeng" runat="server">
                        <asp:ListItem Value="">全部</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:DropDownList></td>
                        </tr>
                    </table>
                </td>
                <td rowspan="2">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
            <tr style="display:none;">
                <td align="right">
                    所在地区：
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlProvice" runat="server">
                        <asp:ListItem Value="">所在省</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCity" runat="server">
                        <asp:ListItem Value="">所在城市</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCountry" runat="server">
                        <asp:ListItem Value="">所在区县</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView runat="server" ID="gvwHospital" AutoGenerateColumns="false" CssClass="mainlist" DataKeyNames="HospitalID" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex+1+AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="医疗机构名称">
                <ItemTemplate>
                    <a href="HospitalInfo.aspx?hID=<%# Eval("HospitalID") %>&flag=1">
                        <asp:Label ID="lblHospitalName" runat="server" Text='<%# Eval("HospitalName") %>'
                            ToolTip="点击查看医疗机构详情"></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="HospitalAddress" HeaderText="地址" />
            <asp:BoundField DataField="ContactPerson" HeaderText="联系人" />
            <asp:BoundField DataField="contacttel" HeaderText="联系人电话" />
              <asp:TemplateField HeaderText="联系电话" Visible="false">
                  <ItemTemplate>
                      <asp:Label ID="Label1" runat="server" Text='<%# GetTelNoById(Eval("HospitalID").ToString()) %>'></asp:Label>
                  </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>
    <script type="text/javascript" language="javascript">
        new PCAS("ctl00$ContentPlaceHolder1$ddlProvice", "ctl00$ContentPlaceHolder1$ddlCity", "ctl00$ContentPlaceHolder1$ddlCountry" <%=GetDefaultAreaString() %> );
    </script>

</asp:Content>
